#include <stdio.h>
#include <unistd.h>

#include "uart_init.h"

int main(int argc, char *argv[])
{
	int uart_fd;
	unsigned int i = 0;
	
	uart_fd = uart_init("/dev/s3c2410_serial3");
	while(1)
	{
		unsigned char tmp = 0;
		
		read(uart_fd, &tmp, sizeof(tmp));
		printf("tmp[%d] = %#x\n", i++, tmp);
	}
	uart_uninit(uart_fd);
	
	return 0;
}
